<li class="filter filter-meta product">
    <a href="#" class="filter-button" data-testid="smartfilter-button">
        <i class="fa fa-headphones" data-testid="smart-filter-button-icon"></i>
        Products
        <i class="fa fa-caret-down"></i>
    </a>


    <div class="StyledDiv-sc-49emis-0 filter-level-container filter category "
         style="scrollbar-width: none;">
        <div class="filter-level first" style="height: fit-content;">
            <h2>Product Category</h2>


            <ul class="search-filters-holder" style="top: 60px;">

                <? foreach ($category_list as $k => $v) { ?>

                    <li class="searchFilter product-level-1">
                        <a href="asset_list.php?<? echo $data['url_parameter'] ?>&like_product_category=<? echo $v['nid'] ?>" class="tip-trigger">

                        <label>
                                <span class="filter-name"><? echo $v['name'] ?></span>
                                <?
                                $p['item']="nid";
                                $p['table']=$table_prefix.'asset_data';
                                $p['condition']="product_category like '%{$v['nid']}%'";
                                $_number=count_number($p)?>
                                <span class="searchCount"><?echo $_number?></span>
                            </label>
                        </a>

                        <ul class="product-level-2" style="display:<? if (count($v['level2']) == 0) {
                            echo "none";
                        } ?>">
                            <? foreach ($v['level2'] as $k2 => $v2) {if($v2['interm']){$_p2c="like_product_category";}else{$_p2c="like_product";} ?>
                                <li>
                                        <a href="asset_list.php?<? echo $data['url_parameter'] ?>&<?echo $_p2c?>=<? echo $v2['nid'] ?>" class="tip-trigger">

                                        <label>
                                            <span class="filter-name"><? echo $v2['name'] ?></span>
                                            <?
                                            $p['item']="nid";
                                            $p['table']=$table_prefix.'asset_data';
                                            $p['condition']="product_category like '%{$v2['nid']}%'";
                                            $_number=count_number($p)?>
                                            <span class="searchCount"><?echo $_number?></span>
                                        </label>
                                    </a>
                                    <ul class="product-level-3" style="display:<? if (count($v2['level3']) == 0) {
                                        echo "none";
                                    } ?>">
                                        <? foreach ($v2['level3'] as $k3 => $v3) {if($v3['interm']==='0'){$_p2c="like_product_category";}else{$_p2c="like_product";} ?>
                                            <li>
                                                    <a href="asset_list.php?<? echo $data['url_parameter'] ?>&<?echo $_p2c?>=<? echo $v3['nid'] ?>" class="tip-trigger">
                                                    <label>
                                                        <span class="filter-name"><? echo $v3['name'] ?></span>
                                                        <?
                                                        $p['item']="nid";
                                                        $p['table']=$table_prefix.'asset_data';
                                                        $p['condition']="product_category like '%{$v3['nid']}%'";
                                                        $_number=count_number($p)?>
                                                        <span class="searchCount"><?echo $_number?></span>
                                                    </label>
                                                </a>
                                                <ul class="product-level-4"
                                                    style="display:<? if (count($v3['level4']) == 0) {
                                                        echo "none";
                                                    } ?>">
                                                    <? foreach ($v3['level4'] as $k4 => $v4) {if($v4['interm']){$_p2c="like_product_category";}else{$_p2c="like_product";} ?>
                                                        <li>
                                                            <a href="asset_list.php?<? echo $data['url_parameter'] ?>&<?echo $_p2c?>=<? echo $v4['nid'] ?>" class="tip-trigger">

                                                                <label>
                                                                    <span class="filter-name"><? echo $v4['name'] ?></span>
                                                                    <span class="searchCount">
                                                                         <?
                                                                         $p['item']="nid";
                                                                         $p['table']=$table_prefix.'asset_data';
                                                                         $p['condition']="product like '%{$v4['name']}%'";
                                                                         $_number=count_number($p)?>
                                                                         <?echo $_number?>
                                                                    </span>
                                                                </label>
                                                            </a>
                                                        </li>
                                                        <? ;
                                                    } ?>
                                                </ul>

                                            </li>
                                            <? ;
                                        } ?>
                                    </ul>

                                </li>
                                <? ;
                            } ?>

                        </ul>


                    </li>
                <? } ?>

                <li style="margin-top: -2px; height: 50px;">
                </li>
            </ul>


            <div class="StyledDiv-sc-1fretga-0 hqaHzq scroll-down" style="display: block">
                <i class="fa fa-chevron-down"></i>
                Scroll down for more
            </div>


        </div>
    </div>
</li>